package org.tao.lightningmq.broker.config;

/**
 * @Author lht
 * @date 2025/1/3 - 16:09
 * @description: 全局配置属性
 */
public class GlobalProperties {
    //nameserver的属性
    private String nameserverIp;
    private String nameserverPort;
    private String nameserverUser;
    private String nameserverPassword;
    private String brokerIp;
    private Integer brokerPort;
    //重平衡策略
    private String reBalanceStrategy;

    //集群配置相关属性
    private String brokerClusterMode;
    private String brokerClusterRole;
    private String brokerClusterGroup;

    /**
     * 读取环境变量中配置的mq存储绝对路径地址
     */
    private String MqHome;

    public String getNameserverIp() {
        return nameserverIp;
    }

    public void setNameserverIp(String nameserverIp) {
        this.nameserverIp = nameserverIp;
    }

    public String getNameserverPort() {
        return nameserverPort;
    }

    public void setNameserverPort(String nameserverPort) {
        this.nameserverPort = nameserverPort;
    }

    public String getNameserverUser() {
        return nameserverUser;
    }

    public void setNameserverUser(String nameserverUser) {
        this.nameserverUser = nameserverUser;
    }

    public String getNameserverPassword() {
        return nameserverPassword;
    }

    public void setNameserverPassword(String nameserverPassword) {
        this.nameserverPassword = nameserverPassword;
    }

    public Integer getBrokerPort() {
        return brokerPort;
    }

    public void setBrokerPort(Integer brokerPort) {
        this.brokerPort = brokerPort;
    }

    public String getReBalanceStrategy() {
        return reBalanceStrategy;
    }

    public void setReBalanceStrategy(String reBalanceStrategy) {
        this.reBalanceStrategy = reBalanceStrategy;
    }

    public String getBrokerClusterMode() {
        return brokerClusterMode;
    }

    public void setBrokerClusterMode(String brokerClusterMode) {
        this.brokerClusterMode = brokerClusterMode;
    }

    public String getBrokerIp() {
        return brokerIp;
    }

    public void setBrokerIp(String brokerIp) {
        this.brokerIp = brokerIp;
    }

    public String getBrokerClusterRole() {
        return brokerClusterRole;
    }

    public void setBrokerClusterRole(String brokerClusterRole) {
        this.brokerClusterRole = brokerClusterRole;
    }

    public String getBrokerClusterGroup() {
        return brokerClusterGroup;
    }

    public void setBrokerClusterGroup(String brokerClusterGroup) {
        this.brokerClusterGroup = brokerClusterGroup;
    }

    public String getMqHome() {
        return MqHome;
    }

    public void setMqHome(String mqHome) {
        this.MqHome = mqHome;
    }

    @Override
    public String toString() {
        return "GlobalProperties{" +
                "nameserverIp='" + nameserverIp + '\'' +
                ", nameserverPort=" + nameserverPort +
                ", nameserverUser='" + nameserverUser + '\'' +
                ", nameserverPassword='" + nameserverPassword + '\'' +
                ", brokerPort=" + brokerPort +
                ", reBalanceStrategy='" + reBalanceStrategy + '\'' +
                ", brokerClusterMode='" + brokerClusterMode + '\'' +
                ", brokerClusterRole='" + brokerClusterRole + '\'' +
                ", brokerClusterGroup='" + brokerClusterGroup + '\'' +
                ", eagleMqHome='" + MqHome + '\'' +
                '}';
    }
}
